package org.nico.ct.section;

import org.nico.aoc.aspect.AspectProxy;
import org.nico.aoc.aspect.point.AspectPoint;
import org.nico.aoc.aspect.point.ProcessingAspectPoint;

/** 
 * 
 * @author nico
 * @version createTime：2018年6月24日 下午5:35:40
 */

public class TestSection implements AspectProxy{

	@Override
	public void before(AspectPoint point) throws Throwable {
		System.out.println("TestSection Before");
		
	}

	@Override
	public Object around(ProcessingAspectPoint point) throws Throwable {
		
		Object result = point.process();
		
		return result;
	}

	@Override
	public void after(AspectPoint point) throws Throwable {
		System.out.println("TestSection After");
		
	}

	@Override
	public void wrong(ProcessingAspectPoint point, Throwable e) throws Throwable {
		e.printStackTrace();
		
	}

}
